import utils from '../utils/utils';
import request from '../utils/request';
//三级地址模糊查询
export function liteSearchPulishedDeliverAddress(data) {
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Deliver/liteSearchPulishedDeliverAddress',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}


//测试签名验证
export function loginVerifyCode(data) {
    return request({
        url: `/oa_web/v1_0_0/login/login-verify-code`,
        method: 'post',
        data
    })
}


//判断是否打开钱包
export function getHzIsOpenFreemoney(data){
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Deliver/getHzIsOpenFreemoney',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}
//取当前熟车数量
export function getFamiliarCount(data){
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Deliver/getFamiliarCount',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}
//钱包余额预警
export function riskWarning(data){
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Finance_Management/riskWarning',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}
//获取主营路线
export function hzLiteMainRouteList(data) {
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Deliver/hzLiteMainRouteList',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}
//取绑定车队
export function carGroupList(data) {
    return request({
        url: '/goods_owner_lite/web_v1_1_0.Personal_Centre/carGroupList',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}
//货单新建/保存
export function addDeliver(data) {
    return request({
        url: '/goods_owner_lite/web_v1_1_0.Deliver/addDeliver',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}
//草稿箱编辑/复制货单时加载货单信息
export function publishBeforeDeliverDetail(data) {
    return request({
        url: '/goods_owner_lite/web_v1_1_0.Deliver/publishBeforeDeliverDetail',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}

//货单列表
export function liteDeliverList(data) {
    return request({
        url: '/goods_owner_lite/web_v1_1_0.Deliver/liteDeliverList',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}


//货单详情信息
export function liteLoadDeliverInfo(data) {
    return request({
        url: '/goods_owner_lite/web_v1_1_0.Deliver/liteLoadDeliverInfo',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}


//执行操作
export function liteDeliverOperate(data) {
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Deliver/liteDeliverOperate',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}

//获取可用余额
export function liteHzPayType(data) {
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Deliver/liteHzPayType',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}

//判断是否设置支付密码
export function chkHasPayPwd(data) {
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Finance_Management/chkHasPayPwd',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}


//支付确认
export function liteDeliverPayConfirm(data) {
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Deliver/liteDeliverPayConfirm',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}


//支付
export function liteDeliverPay(data) {
    return request({
        url: '/goods_owner_lite/web_v1_0_0.Deliver/liteDeliverPay',
        method: 'post',
        data: {
            'yb': utils.EncryptEcb(JSON.stringify(data)),
        }
    })
}